import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import path from 'path'
// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  
  base: './',
  build: {
    outDir: 'weixinh5',
  },
  server: {
    proxy: {

      '/jeecgboot': {
        // target: ' http://boot3.jeecg.com/jeecgboot',
        target: 'https://www.chargesystem.cn',
        changeOrigin: true,
        ws: false,
        rewrite: (path) => path.replace(/^\/jeecgboot/, ''),
      },
    },
  },
  // resolve: {
  //   alias: {
  //     src: path.resolve(__dirname, '../src'),
  //   },
  // },
})
